<template>
  <img :src="srcs[props.icon]" />
</template>
<script setup lang="ts">
  import US from '/@/assets/svg/language/US.svg';
  import BR from '/@/assets/svg/language/BR.svg';
  import VN from '/@/assets/svg/language/VN.svg';
  import CN from '/@/assets/svg/language/CN.svg';

  const props = defineProps<{
    icon: string;
  }>();
  const srcs = {
    CN,
    VN,
    BR,
    US,
  };
</script>
